﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZerAx.ObjectNotation
{
    public class ZonBool : Zon
    {
        public override ZonType Type => ZonType.Bool;
        public bool data;

        public ZonBool()
        {
            data = false;
        }

        public ZonBool(bool data)
        {
            this.data = data;
        }

        public override void Initialize(BinaryReader reader)
        {
            data = reader.ReadBoolean();
        }

        public override void SerializeData(BinaryWriter writer)
        {
            writer.Write(data);
        }

        public override string ToString()
        {
            return data.ToString();
        }
    }
}
